package cn.bgs.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Building对象", description="")
public class Building implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "楼栋自增id")
    private Integer buildingId;

    @ApiModelProperty(value = "第几楼栋")
    private String howMany;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "建成日期")
    private LocalDateTime builtTime;
    @ApiModelProperty(value = "总楼层")
    private String totalFloor;

    @ApiModelProperty(value = "房屋用途（普通住宅、商业用地、商住两用）")
    private String houseUse;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "中间表")
    private List<CellIntermediate> cellIntermediates;
    @ApiModelProperty(value = "小区表")
    private List<CommunityVo> communityVos;
    @ApiModelProperty(value = "小区id")
    private String communityId;

}
